package com.jz.cost.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;


/**
 * Created by WISE on 2021/12/26.
 */
@Data
public class CostVo<T> {
    //1.成本
    private Integer id;


    //含税外键
    private Integer taxType;
    private String taxDec;
    //价格分类
    private Integer priceType;
    private String priceTypeName;
    //币别
    private Integer currencyCode;
    private String currencyCodeName;
    //单价
    private Double price;
    //描述
    private String remark;
    //备件编码，名称
    private String materialName;
    private String materialCode;
    private String materialUnit;
    private String partCode;
    private String partName;
    //状态
    private Boolean status;
    private  String statusName;
    //版本号
    private Integer version;
    //创建.修改时间，人
    private String createName;
    private String creatorName;
    private String updateName;
    private String legalPersonCode;
    private String legalPersonName;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;
    //开始时间
    @NotNull(message = "结束时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    //结束时间
    @NotNull(message = "结束时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;


}
